package com.example.commonmybatisplus.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.commonmybatisplus.dao.UserDao;
import com.example.commonmybatisplus.entity.UserEntity;
import com.example.commonmybatisplus.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author ifredomvip@gmail.com
 * @Date 2022/5/30 8:59
 * @Version 1.0.0
 * @Description
 **/
@Service
public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public UserEntity selectParentInfo() {
        return userDao.selectById(1);
    }
}